#define _CRT_SECURE_NO_WARNINGS 1
//test.c
#include"SList.h"



void TestSList1()
{
	SListNode* plist = NULL;
	SListPrint(plist);

	SListPushFront(&plist, 1);
	SListPrint(plist);

	SListPushFront(&plist, 2);
	SListPrint(plist);

	SListPushBack(&plist, 3);
	SListPrint(plist);

	SListPushBack(&plist, 4);
	SListPrint(plist);

	SListPopBack(&plist);
	SListPrint(plist);

	SListPopBack(&plist);
	SListPrint(plist);

	SListPopFront(&plist);
	SListPrint(plist);

	SListPopFront(&plist);
	SListPrint(plist);
	SListDestroy(plist);

}



int main()
{
	TestSList1();
	return 0;
}






